#ifndef LFOSCOMMON_H
#define LFOSCOMMON_H

#define ROWS 240
#define COLS 320
#define PIXELS 76800

#define ROW_COL_TO_INDEX(X,Y) ((Y)*COLS + (X))
#define INDEX_TO_COL(X) ((X)%COLS)
#define INDEX_TO_ROW(X) ((X)/COLS)

typedef struct{
	int x;
	int y;
} Point;

typedef struct{
	int theta;
	int r;
	Point p1;
	Point p2;
} LineSegment;

#endif
